package com.bk.mapper;

import com.bk.entity.Innovation;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface InnovationMapper {
    /**
     * 根据当前的id查询所有帖子
     * @param userId
     * @return
     */
    @Select("SELECT * from innovation where user_id = #{userId}")
    List<Innovation> getByUserId(Long userId);
}
